package com.siashan.unipay4j.biz;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;
import java.util.List;
import java.util.regex.Pattern;


/**
 * 支付业务
 *
 * @author siashan
 * @date 2023-06-09
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@ConfigurationProperties(prefix = PayBizProperties.PREFIX)
public class PayBizProperties implements Serializable {

    /**
     * Prefix of {@link PayBizProperties}.
     */
    public static final String PREFIX = "siashan.unipay4j";

    private static final Pattern PATTERN = Pattern.compile("-(\\w)");


    private List<PayBiz> bizs;
}
